package com.javaspeak.designpatterns.go4.structural.adapter;


/**
 * This class is the third party class we are adapting.
 *
 * @author John Dickerson
 */
public class ShapeImpl implements Shape {

    /* (non-Javadoc)
     * @see com.javaspeak.designpatterns.go4.structural.adapter.
     *      Shape#drawSquare()
     */
    @Override
    public void drawSquare() {

        StringBuilder sb = new StringBuilder();
        sb.append( "xxxx\n" );
        sb.append( "x  x\n" );
        sb.append( "x  x\n" );
        sb.append( "xxxx\n" );

        System.out.println( sb.toString() );
    }
}
